<template>
  <a-layout id="components-layout-demo-side" style="min-height: 100vh">
    <a-layout-sider v-model="collapsed" collapsible>
      <div class="logo" />
      <a-menu theme="dark" :default-selected-keys="['1']" mode="inline">

<!--用户模块-->
        <a-sub-menu key="sub1">
          <span slot="title"><a-icon type="user" /><span>User</span></span>
          <a-menu-item key="1">
            <router-link to="/Login">Login</router-link>
          </a-menu-item>
          <a-menu-item key="2">
            <router-link to="/Register">Register</router-link>
          </a-menu-item>
        </a-sub-menu>

<!--汇率模块        -->
        <a-sub-menu key="sub2">
          <span slot="title"><a-icon type="transaction" /><span>Finance</span></span>
          <a-menu-item key="3">
            <a-icon type="line-chart" />
            Exchange_rate
            <router-link to="/Exchange_rate"></router-link>
          </a-menu-item>
        </a-sub-menu>

<!--支付模块        -->
        <a-sub-menu key="sub3">
          <span slot="title"><a-icon type="alipay-circle" /><span>Pay</span></span>
          <a-menu-item key="4">
            <a-icon type="wechat" />
            payment
            <router-link to="/payment"></router-link>
          </a-menu-item>
          <a-menu-item key="5">
            <a-icon type="wechat" />
            paymoney
            <router-link to="/paymoney"></router-link>
          </a-menu-item>
        </a-sub-menu>

<!--分片上传和在线人数-->
        <a-menu-item key="sub4">
          <a-icon type="folder-open" />
          Shard to upload
          <router-link to="/upload_file"></router-link>
        </a-menu-item>
        <a-menu-item key="6">
          <a-icon type="cluster" />
          online number
          <router-link to="/index"></router-link>
        </a-menu-item>

      </a-menu>
    </a-layout-sider>
    <a-layout>
      <a-layout-header style="background: #fff; padding: 0" />
      <a-layout-content style="margin: 0 16px">
        <a-breadcrumb style="margin: 16px 0">
          <a-breadcrumb-item>Welcome to Zhang Sitong's project homepage</a-breadcrumb-item>
<!--          <a-breadcrumb-item>Bill</a-breadcrumb-item>-->
        </a-breadcrumb>
        <div :style="{ padding: '24px', background: '#fff', minHeight: '360px' }">
          <router-view></router-view>
        </div>
      </a-layout-content>
      <a-layout-footer style="text-align: center">
        Ant Design ©2018 Created by Ant UED
      </a-layout-footer>
    </a-layout>
  </a-layout>
</template>
<script>
export default {
  data() {
    return {
      collapsed: false,
    };
  },
};
</script>

<style>
#components-layout-demo-side .logo {
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  margin: 16px;
}
</style>
